import { ArrowDownOnSquareIcon, ArrowDownTrayIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon } from "@heroicons/react/24/outline";
import AppBar from "@/components/layouts/AppBar";
import Layout from "@/components/layouts/Layout";
import LineDivider from "@/components/elements/LineDivider";
import WithAuth from "@/components/auth/WithAuth";
import { useState } from "react";
const Row = ({ label, children }) => (
);
const Section = ({ children }) => (
{ children }
);
const TitleRow = ({ label, active, onClick }) => (
{ label }
{ onClick && ( active ? (
) : (
) ) }
);
export default function DetailTransactions() {
const [ activeSection, setActiveSection ] = useState({
purchase: false,
shipping: false,
invoice: false,
});
const toggleSection = ( name ) => {
setActiveSection({
...activeSection,
[name]: !activeSection[name]
});
};
return (
Pending Quotation
SO/2023/03212
PO/2023/02123
Download
BCA Transfer
Cash Before Delivery
Rafi Zadanly
01 Januari 2023
toggleSection('purchase')}
/>
{ activeSection.purchase && (
John Doe
johndoe@gmail.com
081223538754
Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara
) }
toggleSection('shipping')}
/>
{ activeSection.shipping && (
John Doe
johndoe@gmail.com
081223538754
Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara
) }
toggleSection('invoice')}
/>
{ activeSection.invoice && (
John Doe
johndoe@gmail.com
081223538754
Jalan Bandengan Utara No 85A, Kel. Penjaringan, Kec. Penjaringan, Jakarta Utara
) }
);
}